#include "statisticsadmin.h"
#include "ui_statisticsadmin.h"

StatisticsAdmin::StatisticsAdmin(QStandardItemModel* model,QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::StatisticsAdmin)
{
    ui->setupUi(this);

    ui->tableView->setModel(model);
    ui->tableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
    ui->tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
}

StatisticsAdmin::~StatisticsAdmin()
{
    delete ui;
}

void StatisticsAdmin::on_pushButton_clicked()
{
    this->close();
}

